.class public Lcom/jecelyin/editor/v2/FullScreenActivity;
.super Lcom/jecelyin/common/app/JecActivity;
.source "FullScreenActivity.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/jecelyin/common/app/JecActivity;-><init>()V

    return-void
.end method

.method private w()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x400

    invoke-virtual {v0, v1, v1}, Landroid/view/Window;->setFlags(II)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x4

    .line 3
    invoke-virtual {v0, v1}, Landroid/view/View;->setSystemUiVisibility(I)V

    return-void
.end method


# virtual methods
.method public getResources()Landroid/content/res/Resources;
    .locals 1

    .line 1
    :try_start_0
    invoke-static {}, Lcom/jecelyin/editor/v2/b;->a()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object v0

    .line 2
    :catch_0
    invoke-super {p0}, Landroidx/appcompat/app/AppCompatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    return-object v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0
    .param p1    # Landroid/os/Bundle;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    .line 1
    invoke-super {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-static {p0}, Lcom/jecelyin/editor/v2/d;->a(Landroid/content/Context;)Lcom/jecelyin/editor/v2/d;

    move-result-object p1

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/d;->l()Lcom/jecelyin/editor/v2/q$a;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 3
    iget-boolean p1, p1, Lcom/jecelyin/editor/v2/q$a;->c:Z

    if-eqz p1, :cond_0

    sget p1, Lcom/jecelyin/editor/v2/n;->DarkTheme:I

    goto :goto_0

    :cond_0
    sget p1, Lcom/jecelyin/editor/v2/n;->DefaultTheme:I

    :goto_0
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->setTheme(I)V

    .line 4
    :cond_1
    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/FullScreenActivity;->v()Z

    move-result p1

    if-eqz p1, :cond_2

    .line 5
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/FullScreenActivity;->w()V

    :cond_2
    return-void
.end method

.method protected v()Z
    .locals 1

    .line 1
    invoke-static {p0}, Lcom/jecelyin/editor/v2/d;->a(Landroid/content/Context;)Lcom/jecelyin/editor/v2/d;

    move-result-object v0

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/d;->s()Z

    move-result v0

    return v0
.end method
